/*
 ============================================================================
 Name        : praprozessor.c
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>


#define clear_array(A,L)   	\
{ /* beg local scope */    	\
 double *_a = (double *)A; 	\
 double *_end = _a + L;    	\
 while ( _a < _end) {		\
 *(_a++) = 0.0; 			\
} /* end of array */		\
} /* end local scope */


#define XCONCAT(T) X_  ## T
#define STRING(S) XCONCAT(S)
#define TABSIZE 1024
#define BUFSIZE TABSIZE
#define rdiv(x,y) ( x + y - 1)/y

int main(void) {

	int u, v, x, y, z;

	u = 1;
	v = 2;
	x = u | v;
	y = v & v;
	//a = 2 | 1;


	z = rdiv(x, y);
//	 printf ("\n%d", z);

	z = rdiv (u | v, v & v);
//	 printf ("\n%d", z);
//	 printf ("\n%d", a);

int i, length = 5;
double a[]= {1,2,3,4,5};


//clear_array (a, length);

printf( "%f", a[2]);

if (a != NULL){
clear_array (a, length);}

else
	printf("array is NULL\n");
printf( "\n%f", a[2]);


	 z = (0010 | 0000);// / 0010 & 0010;

//	 printf ("\n%d", z);

	return EXIT_SUCCESS;
}
